# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=deroff
pkgver=2.0
pkgrel=0
pkgdesc="Deroff removes roff constructs from documents for the purpose of indexing"
url="http://www.moria.de/~michael/deroff/"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends=""
install=""
options="!check"
subpackages="$pkgname-doc"
source="http://www.moria.de/~michael/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make BINDIR="$pkgdir/usr/bin" \
		MANDIR="$pkgdir/usr/share/man" install
}

sha512sums="8037977c4ea59ee7de1132dbd0a2197f36029d98a1ba1a39fc7d50e61fffc7e8ff092e5b0951e05a4c5653b8972959b8025135ce9c5220cbd230cd41ab3d07fd  deroff-2.0.tar.gz"
